import Mock from "mockjs";
var { userdata } = Mock.mock({
    'userdata|10': [
        {
            name: "@cname()",
            IDcard: "@id()",
            address: "@city(true)"
        }
    ]
})
Mock.mock('/user/userInfo', 'get', () => {
    return {
        code: 200,
        message: '查询用户信息成功',
        data: userdata
    }

})

var { newList } = Mock.mock({
    'newList|20-30': [
        {
            id: "@increment(1)",
            title: '@ctitle',
            updat: '@date(yyyy-MM-dd hh:mm:ss)',
            info: '@cparagraph(5,10)',
            small: "@dataImage(300x200,电影图片)"
        }
    ]

})
Mock.mock('/api/movie', 'get', () => {
    return {
        status: 200,
        message: '获取电影列表成功！',
        total: newList.length,
        data: newList

    }
})
